Applies a function to one stored argument. When the argument is stored as a
model_spec, fn can change it with the term helpers.
Examples
m <- model_spec(x1, x2) |> set_args(nominal = model_spec(x1))
modify_arg(m, "nominal", \(a) add_terms(a, x2))
#> model_spec: ~ x1 + x2
#> args: nominal = ~ x1 + x2